<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #a {
            width: 330px;
            height: 100px;
            margin: 10px auto;
        }
        
        #a div {
            float: left;
            width: 200px;
            height: 100px;
            margin: 0 5px;
            background: black;
        }
    </style>
    <script>
        window.onload = function() {
            var fds = document.getElementById("a").getElementsByTagName("div");
            var axp = document.getElementsByTagName("button")[0];
            axp.onclick = function() {
                for (var i = 0; i < fds.length; i++) fds[i].style.background = "white";
            }
        }
    </script>
</head>

<body>
    <button>方东升</button>
    <div id="a">
        <div>安馨萍</div>
        <div>安馨萍</div>
        <div>安馨萍</div>
    </div>
</body>

</html>